package routers

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func DefaultRoutersInit(r *gin.Engine) {
	adminRouters := r.Group("/default")
	{
		adminRouters.GET("/", func(ctx *gin.Context) {
			ctx.JSON(http.StatusOK, gin.H{
				"title": "default 首页",
			})
		})
		adminRouters.GET("/user", func(ctx *gin.Context) {
			ctx.JSON(http.StatusOK, gin.H{
				"title": "default 用户",
			})
		})
		adminRouters.GET("/article", func(ctx *gin.Context) {
			ctx.JSON(http.StatusOK, gin.H{
				"title": "default 新闻",
			})
		})
	}

}
